﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace XNADota.Graphics
{
    class SpritePaletteRendererContainer : PaletteRendererContainer
    {
        private SpriteRenderer _AlphaBlendRenderer;

        public SpritePaletteRendererContainer(Game game)
        {
            var alphaBlendSpriteBatch = new SpriteBatch(game.GraphicsDevice);
            _AlphaBlendRenderer = new SpriteRenderer(alphaBlendSpriteBatch);
        }

        public PaletteRenderer GetPaletteRenderer(string name)
        {
            if (name.CompareTo("AlphaBlend") == 0)
                return _AlphaBlendRenderer;
            return null;
        }
    }
}
